<?php
/* 
 * ********* CVS HEADER ********* 
 * 
 * $RCSfile: admhtmlunpub.php,v $ 
 * $Date: 2005/08/29 15:05:21 $ 
 * $Revision: 1.2 $ 
 * 
 * ********* CVS HEADER ********* 
 */
$id_page=-1;
if(isset($page)){
	$id_page = $page;
}
if(isset($argid)){
	$id_page = $argid;
}
$query="SELECT id FROM html,hierarchie WHERE html.id='$id_page' AND html.droit=hierarchie.id_groupe AND hierarchie.id_groupe_dessus='".$session['id_groupe']."'";
$result=rportalrequete($query) or rportalerreur("$query","?op=");
if($html=rportalligne($result)){
	$query="UPDATE html SET publier='0' WHERE id='".$html['id']."'";
	@rportalrequete($query) or rportalerreur("$query","?op=");
}
header("Location: ?op=admhtmlnav&r=$r");
exit;
?>